package Presentation.action;
import Presentationlayout.Search;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingUtilities;


public class ToLoginAction implements ActionListener {

	private Search search;
	
	public ToLoginAction(Search search) {
		this.search = search;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		Runnable logon = new Runnable() {
			public void run() {
				search.goToMain();
			}
			
		};
		
		SwingUtilities.invokeLater(logon);
		
	}
}


